home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act8 / 00092_quitbox1.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  730 b   |  30 lines

  1. on mouseDown
  2.   set castigate to the number of cast "quitbox2"
  3.   set the castNum of sprite the clickOn to castigate
  4.   startTimer()
  5.   set tstep to 10
  6.   sound stop 1
  7.   sound stop 2
  8.   puppetSound("Sound 6")
  9.   repeat while the mouseDown or (the timer < 40)
  10.     set ttime to the timer / tstep
  11.     if ttime < 4 then
  12.       set the castNum of sprite the clickOn to the number of cast ("quitbox" & ttime + 1)
  13.       updateStage()
  14.     end if
  15.   end repeat
  16.   startTimer()
  17.   set ttime to 0
  18.   repeat while ttime < 4
  19.     set ttime to the timer / tstep
  20.     if ttime < 4 then
  21.       set the castNum of sprite the clickOn to the number of cast ("quitbox" & 4 - ttime)
  22.       updateStage()
  23.     end if
  24.   end repeat
  25. end
  26.  
  27. on mouseUp
  28.   go(1, "submenu")
  29. end
  30.